
import request from "@/service/axios/index";

/**@description 【ImageLibrary图库】页面接口API */
const ImageLibraryApi = {
    /**@description 查询图片列表 */
    queryList: (data) => {
        return request.post({ url: '/oss/aliyun/listFiles', data })
    },

    /**@description 获取目录 */
    queryDir: (data) => {
        return request.post({ url: '/oss/aliyun/listDir', data })
    },
    /**@descriptions 删除目录 */
    deleteDir: (data) => {
        return request.post({ url: '/oss/aliyun/deleteDir', data })
    },
    /**@description 删除对象 */
    deleteObject: (data) => {
        return request.post({ url: '/oss/aliyun/deleteObject', data })
    },
    /**@description 新建目录 */
    createDir: (data) => {
        return request.post({ url: '/oss/aliyun/createDir', data })
    },



    /**@description 删除 */
    delete: (id) => {
        return request.delete({ url: '/dev/codeGengeration/delete?id=' + id })
    },
    /**@description 保存数据 */
    saveData: (data) => {
        return request.post({ url: "/dev/codeGengeration/save", data })
    },
    /**@description 获取详情 */
    getDetail: (id) => {
        return request.get({ url: "/dev/codeGengeration/detail?id=" + id })
    }
}
export default ImageLibraryApi;
